package com.stack.knowyoubean.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 课程图谱实体类
 *
 * @author stack
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseAtlas implements Serializable {

    /**
     * 序列化版本号
     */
    private static final long serialVersionUID = 20200626103512L;


    /**
     * 边集
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Edge implements Serializable {
        private Integer source;
        private Integer target;
        private String rela;
        private Integer sid;

    }

    /**
     * 节点集合
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Node implements Serializable {
        private Integer sid;
        private Integer nodeid;
        private String name;
        private String type;
        private String desc;
    }

    /**
     * 属性
     */
    private List<Edge> edges;
    private Map<String, Node> nodes;
}
